<template>
  <div class="error-500">
    <div class="error-content">
      <h1>500</h1>
      <h2>Internal Server Error</h2>
      <p>Sorry, something went wrong on our end.</p>
      <n-button type="primary" @click="goHome">Back to Home</n-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.error-500 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.error-content {
  text-align: center;
}

h1 {
  font-size: 72px;
  color: #f5222d;
  margin-bottom: 24px;
}

h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}
</style>
